//
//  DisTAbCollectionViewCell.m
//  HealthA段
//
//  Created by MrJXT on 15/6/9.
//  Copyright (c) 2015年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "DisTAbCollectionViewCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation DisTAbCollectionViewCell
- (void)dealloc
{
    [_nameLabel release];
    [_picView release];
    [super dealloc];
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.picView = [[UIImageView alloc]init];
        [self.contentView addSubview:self.picView];
        [_picView release];
        
        self.nameLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.nameLabel];
        [_nameLabel release];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.picView.frame = CGRectMake(0, 5, 90, 100);
    self.picView.layer.borderWidth = 1;
    self.picView.layer.cornerRadius = 12;
    self.picView.layer.borderColor = [UIColor clearColor].CGColor;
    self.picView.layer.masksToBounds = YES;
//    self.picView.backgroundColor = [UIColor redColor];
    self.nameLabel.frame = CGRectMake(0, 105, 90, 20);
    self.nameLabel.textAlignment = NSTextAlignmentCenter;
    self.nameLabel.textColor = [UIColor grayColor];
}
@end
